Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command for opening the containing folder of a file #10523

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

AlexandraBuzila
Copy link
Contributor

@AlexandraBuzila AlexandraBuzila commented Dec 8, 2021

What it does

A new 'OPEN_CONTAINING_FOLDER' command was added for the electron application.
It opens the native file explorer at the path where the selected resource (or resources) from the file navigator is located.

Fixes #10522

How to test

Select a file or directory in the file explorer, open the context menu and select the Open Containing Folder action. The OS file explorer should open at the path where the file is located.

Review checklist

Reminder for reviewers

Signed-off-by: Alexandra Buzila [email protected]

@vince-fugnitto vince-fugnitto added the navigator issues related to the navigator/explorer label Dec 8, 2021
@AlexandraBuzila
Copy link
Contributor Author

Thank you for the review, @vince-fugnitto! I integrated your feedback in the updated commit.

@AlexandraBuzila
Copy link
Contributor Author

Thank you for the review! I updated the commit and rebased it on master.

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good, although there is an issue with Windows and this feature not working there. Luckily, it can be easily fixed :)

Afterwards, I think this PR is good to go.

A new 'OPEN_CONTAINING_FOLDER' command was added for the electron
application. It opens the native file explorer at the path where the
selected resource (or resources) from the file navigator is located.

Signed-off-by: Alexandra Buzila <[email protected]>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that the feature works as expected on Windows and Ubuntu (VM) 👍

@msujew msujew merged commit dd900be into eclipse-theia:master Jan 12, 2022
@AlexandraBuzila AlexandraBuzila deleted the open-containing-folder branch January 18, 2022 14:01
@vince-fugnitto vince-fugnitto added this to the 1.22.0 milestone Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
navigator issues related to the navigator/explorer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add command for opening the containing folder of a file
3 participants